home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1810 / 1810.xpi / chrome / showcase.jar / content / showcaseSidebar.xul < prev    next >
Extensible Markup Language  |  2010-01-17  |  18KB  |  279 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://browser/skin" type="text/css"?>
  4. <?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
  5.  
  6. <?xml-stylesheet href="chrome://showcase/skin/window.css" type="text/css"?>
  7. <?xml-stylesheet href="chrome://showcase/skin/sidebarFindBar.css" type="text/css"?>
  8.  
  9. <!DOCTYPE window [
  10. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
  11. %brandDTD;
  12. <!ENTITY % realBrowserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
  13. %realBrowserDTD;
  14. <!ENTITY % browserDTD SYSTEM "chrome://showcase/locale/browser.dtd" >
  15. %browserDTD;
  16. <!ENTITY % showcaseDTD SYSTEM "chrome://showcase/locale/showcase.dtd">
  17. %showcaseDTD;
  18. <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
  19. %globalDTD;
  20. <!ENTITY % findBarDTD SYSTEM "chrome://global/locale/findbar.dtd" >
  21. %findBarDTD;
  22. ]>
  23.  
  24. <page title="&showcase.title;"
  25.     onload="startup();"
  26.       onunload="unloadShowcase();"
  27.       class="showcaseWindow"
  28.       xmlns:html="http://www.w3.org/1999/xhtml"
  29.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  30.   <script src="chrome://global/content/nsDragAndDrop.js"/>
  31.   <script src="chrome://global/content/nsTransferable.js"/>
  32.   <script type="application/x-javascript" src="chrome://browser/content/browser.js"/>
  33.   <script><![CDATA[
  34. var sidebarFindBar = true;
  35.     ]]></script>
  36.   <script type="application/x-javascript" src="showcase.js" />
  37.   
  38.   <script type="application/x-javascript" src="chrome://global/content/contentAreaUtils.js"/>
  39.   <script type="application/x-javascript" src="chrome://browser/content/bookmarks/bookmarks.js"/>
  40.   
  41.   <script type="application/x-javascript"
  42.           src="chrome://global/content/globalOverlay.js"/>
  43.   <script type="application/x-javascript"
  44.           src="chrome://browser/content/utilityOverlay.js"/>
  45.   <script type="application/x-javascript" 
  46.           src="chrome://browser/content/places/utils.js"/>
  47.  
  48.   <stringbundleset id="stringbundleset">
  49.     <stringbundle id="bundle_tabbrowser"
  50.         src="chrome://global/locale/tabbrowser.properties"/>
  51.     <stringbundle id="bundle_showcase"
  52.         src="chrome://showcase/locale/showcase.properties"/>
  53.     
  54.   </stringbundleset>
  55.  
  56.   <command id="cmd_close" oncommand="showcaseCloseWindow();"/>
  57.   <command id="cmd_sendlink" oncommand="showcaseSendLink();"/>
  58.   <command id="cmd_savepage" oncommand="try {saveDocument(window.showcasePopupTab.targetTab.contentWindow.document);} catch (e) {alert(e);}"/>
  59.   <command id="cmd_print" oncommand="showcasePrint();"/>
  60.   <command id="cmd_opentab" oncommand="openSelectedTab();"/>
  61.   <command id="cmd_closeother" oncommand="closeOtherTabs();"/>
  62.   <command id="cmd_closetab" oncommand="closeSelectedTabs();"/>
  63.   <command id="cmd_closewindow" oncommand="closeSelectedWindow();"/>
  64.   <command id="cmd_refresh" oncommand="refreshScreen();"/>
  65.   <command id="cmd_addbookmark" oncommand="showcaseAddBookmark();"/>
  66.   <command id="cmd_bookmarkselected" oncommand="showcaseBookmarkSelected();"/>
  67.   <command id="Browser:Back"    oncommand="try { window.showcasePopupTab.targetTab.webNavigation.goBack(); } catch (e) { alert(e); }" disabled="true"/>
  68.   <command id="Browser:Forward" oncommand="try { window.showcasePopupTab.targetTab.webNavigation.goForward(); } catch (e) { alert(e); }" disabled="true"/>
  69.   <command id="Browser:Stop"    oncommand="showcaseBrowserStop();" disabled="true"/>
  70.   <command id="Browser:Reload"  oncommand="if (event.shiftKey) showcaseBrowserReloadSkipCache(); else showcaseBrowserReload()" disabled="true"/>
  71.   <command id="cmdkey_left" oncommand="keyboardLeft(event);"/>
  72.   <command id="cmdkey_right" oncommand="keyboardRight(event);"/>
  73.   <command id="cmdkey_up" oncommand="keyboardUp(event);"/>
  74.   <command id="cmdkey_down" oncommand="keyboardDown(event);"/>
  75.   <command id="cmdkey_enter" oncommand="keyboardEnter();"/>
  76.   <command id="cmdkey_delete" oncommand="keyboardDelete();"/>
  77.   <command id="cmdkey_home" oncommand="keyboardHome(event);"/>
  78.   <command id="cmdkey_end" oncommand="keyboardEnd(event);"/>
  79.   <command id="cmd_options" oncommand="showShowcaseOptions();"/>
  80.   <command id="cmd_selectall" oncommand="selectAll();"/>
  81.   <command id="cmd_find" oncommand="findShortcutAction();"/>
  82.   <command id="View:PageSource" oncommand="BrowserViewSourceOfDocument(window.showcasePopupTab, window.showcasePopupTab.targetTab.contentWindow.document);"/>
  83.   <command id="View:PageInfo" oncommand="BrowserPageInfo(window.showcasePopupTab.targetTab.contentWindow.document);"/>
  84.   <command id="cmd_duplicateselected" oncommand="duplicateInNewWindow();"/>
  85.   <command id="cmd_mergeselected" oncommand="mergeInNewWindow();"/>
  86.   <command id="cmd_showonlycurrent" oncommand="toggleShowOnlyCurrent();"/>
  87.   <command id="cmd_showcasethis" oncommand="showcaseSelectedWindow();"/>
  88.   <command id="cmdkey_zoomin" oncommand="zoomIn();"/>
  89.   <command id="cmdkey_zoomout" oncommand="zoomOut();"/>
  90.  
  91.  
  92.   <popupset id="mainPopupSet">
  93.     <popup id="tabMenu" onpopupshowing="showingTabPopup(event);" onpopupshown="event.stopPropagation();" onpopuphiding="event.stopPropagation();" onpopuphidden="hiddenTabPopup(event);">
  94.       <menuitem id="context-opentab" label="&showcaseOpen;" command="cmd_opentab" hidden="true"/>
  95.       <menuitem id="showcaseMenuItem" label="&showcaseThisCmd.label;" command="cmd_showcasethis" hidden="true"/>
  96.       <menuseparator id="openTabSeparator" hidden="true"/>
  97.       <menuitem id="context-back" label="&backCmd.label;" accesskey="&backCmd.accesskey;" command="Browser:Back" hidden="true"/>
  98.       <menuitem id="context-forward" label="&forwardCmd.label;" accesskey="&forwardCmd.accesskey;" command="Browser:Forward" hidden="true"/>
  99.       <menuitem id="context-reload" label="&reloadCmd.label;" accesskey="&reloadCmd.accesskey;" command="Browser:Reload" hidden="true"/>
  100.       <menuitem id="context-stop" label="&stopCmd.label;" accesskey="&stopCmd.accesskey;" command="Browser:Stop" hidden="true"/>
  101.       <menuseparator id="navigationSeparator" hidden="true"/>
  102.       <menuitem id="duplicateTab" label="&duplicateTabCmd.label;" command="cmd_duplicateselected" hidden="true"/>
  103.       <menuitem id="duplicateSelected" label="&duplicateSelectedCmd.label;" command="cmd_duplicateselected" hidden="true"/>
  104.       <menuitem id="moveTab" label="&moveTabCmd.label;" command="cmd_mergeselected" hidden="true"/>
  105.       <menuitem id="mergeSelected" label="&mergeSelectedCmd.label;" command="cmd_mergeselected" hidden="true"/>
  106.       <menuitem id="context-bookmarkpage" label="&bookmarkPageCmd.label;" accesskey="&bookmarkPageCmd.accesskey;" command="cmd_addbookmark" hidden="true"/>
  107.       <menuitem id="bookmarkSelectedTabs" label="&bookmarkSelectedTabs;" command="cmd_bookmarkselected" hidden="true"/>
  108.       <menuitem id="context-savepage" label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;" command="cmd_savepage" hidden="true"/>
  109.       <menuitem id="context-sendpage" label="&sendPageCmd.label;" accesskey="&sendPageCmd.accesskey;" command="cmd_sendlink" hidden="true"/>
  110.       <menuitem id="print" label="&printCmd.label;" accesskey="&printCmd.accesskey;" command="cmd_print" hidden="true"/>
  111.       <menuitem id="viewSource" label="&viewSourceCmd.label;" command="View:PageSource" hidden="true"/>
  112.       <menuitem id="pageInfo" label="&pageInfoCmd.label;" command="View:PageInfo" hidden="true"/>
  113.       <menuseparator id="toolsSeparator" hidden="true"/>
  114.       <menuitem id="popupCloseOther" label="&closeOtherCmd.label;" command="cmd_closeother" hidden="true"/>
  115.       <menuitem id="popupCloseTab" label="&closeTab.label;" accesskey="&closeTab.accesskey;" command="cmd_closetab" hidden="true"/>
  116.       <menuitem id="popupCloseWindow" label="&closeWindow.label;" command="cmd_closewindow" hidden="true"/>
  117.       <menuitem id="popupClose" label="&closeCmd.label;" accesskey="&closeCmd.accesskey;" command="cmd_closetab" hidden="true"/>
  118.     </popup>
  119.     <tooltip id="thumbnailTooltip" onpopupshowing="return showingThumbnailTooltip(event);" orient="vertical">
  120.       <description id="thumbnailTooltipTitle"/>
  121.       <description id="thumbnailTooltipURL"/>
  122.     </tooltip>
  123.   </popupset>
  124.  
  125.   <keyset id="showcaseKeys">
  126.     <key keycode="VK_ESCAPE" command="cmd_close"/>
  127.     <key keycode="VK_F5" command="cmd_refresh"/>
  128.     <key keycode="VK_F12" command="cmd_close"/>
  129.     <key keycode="VK_F12" modifiers="shift" command="cmd_close"/>
  130.     <key key="&reloadCmd.commandkey;" command="cmd_refresh" modifiers="accel"/>
  131.     <key keycode="VK_LEFT" modifiers="accel,shift,any" command="cmdkey_left"/>
  132.     <key keycode="VK_NUMPAD4" modifiers="accel,shift,any" command="cmdkey_left"/>
  133.     <key keycode="VK_RIGHT" modifiers="accel,shift,any" command="cmdkey_right"/>
  134.     <key keycode="VK_NUMPAD6" modifiers="accel,shift,any" command="cmdkey_right"/>
  135.     <key keycode="VK_UP" modifiers="accel,shift,any" command="cmdkey_up"/>
  136.     <key keycode="VK_NUMPAD8" modifiers="accel,shift,any" command="cmdkey_up"/>
  137.     <key keycode="VK_DOWN" modifiers="accel,shift,any" command="cmdkey_down"/>
  138.     <key keycode="VK_NUMPAD2" modifiers="accel,shift,any" command="cmdkey_down"/>
  139.     <key keycode="VK_ENTER" command="cmdkey_enter"/>
  140.     <key keycode="VK_RETURN" command="cmdkey_enter"/>
  141.     <key keycode="VK_DELETE" command="cmdkey_delete"/>
  142.     <key keycode="VK_HOME" modifiers="accel,shift,any" command="cmdkey_home"/>
  143.     <key keycode="VK_END" modifiers="accel,shift,any" command="cmdkey_end"/>
  144.     <key key="O" modifiers="alt" command="cmd_options"/>
  145.     <key key="A" modifiers="accel" command="cmd_selectall"/>
  146.     <key key="F" modifiers="accel" command="cmd_find"/>
  147.     <key key="U" modifiers="accel" command="cmd_showonlycurrent"/>
  148.     <key key="+" command="cmdkey_zoomin"/>
  149.     <key key="-" command="cmdkey_zoomout"/>
  150.   </keyset>
  151.  
  152.   <hbox id="FindToolbar" align="center">
  153.     <toolbarbutton id="find-closebutton" tooltiptext="&findCloseButton.tooltip;" oncommand="toggleFind();" hidden="true"/>
  154.     <label control="find-field" value="&find.label;"/>
  155.     <hbox id="find-field-container" flex="1">
  156.       <textbox id="find-field" oninput="refreshContent();" onkeypress="onFindBarKeyPress(event);" flex="1"/>
  157.     </hbox>
  158.     <image id="find-status-icon" hidden="true"/>
  159.     <button id="findOptionsButton" style="min-width:0px !important;" type="menu" label="&findOptions.label;" selectedsort="findtype-any">
  160.       <menupopup>
  161.         <menuitem id="findtype-title" label="&find.title;" type="radio"
  162.                   oncommand="findTypeChanged(0);"/>
  163.         <menuitem id="findtype-location" label="&find.location;" type="radio"
  164.                   oncommand="findTypeChanged(1);"/>
  165.         <menuitem id="findtype-content" label="&find.content;" type="radio"
  166.                   oncommand="findTypeChanged(2);"/>
  167.         <menuitem id="findtype-any" label="&find.any;" type="radio"
  168.                   oncommand="findTypeChanged(3);" checked="true"/>
  169.         <menuseparator/>
  170.         <menuitem id="find-invert" label="&invert.label;" type="checkbox"
  171.                   oncommand="setTimeout(refreshContent, 0);" disabled="true"/>
  172.         <menuitem id="find-case-sensitive" label="&caseSensitiveCheckbox.label;" type="checkbox"
  173.                    oncommand="toggleSearchCaseSensitivity(this.getAttribute('checked'));"/>
  174.       </menupopup>
  175.     </button>
  176.   </hbox>
  177.  
  178.   <hbox flex="1" id="showcase-content-horizontal">
  179.     <scrollbox flex="1" id="showcase-content-vertical">
  180.       <stack id="showcase-box" flex="1" ondragover="nsDragAndDrop.dragOver(event,boardObserver)" ondragdrop="nsDragAndDrop.drop(event,boardObserver)" chromedir="&locale.dir;">
  181.         <box id="emptyMessage" flex="1" hidden="true">
  182.           <description value="&noThumbnails.label;" disabled="true" />
  183.         </box>
  184.         <box id="selection-box" hidden="true" mousethrough="always"/>
  185.         <box id="drop-box" hidden="true" mousethrough="always"/>
  186.         <toolbarbutton id="cursor-left" hidden="true" onmouseover="zoomScrollingLeft = true; window.setTimeout(doZoomScrollLeft, 20);" onmouseout="zoomScrollingLeft = false;"/>
  187.         <toolbarbutton id="cursor-right" hidden="true" onmouseover="zoomScrollingRight = true; window.setTimeout(doZoomScrollRight, 20);" onmouseout="zoomScrollingRight = false;"/>
  188.         <toolbarbutton id="cursor-up" hidden="true" onmouseover="zoomScrollingUp = true; window.setTimeout(doZoomScrollUp, 20);" onmouseout="zoomScrollingUp = false;"/>
  189.         <toolbarbutton id="cursor-down" hidden="true" onmouseover="zoomScrollingDown = true; window.setTimeout(doZoomScrollDown, 20);" onmouseout="zoomScrollingDown = false;"/>
  190.         <toolbarbutton chromedir="&locale.dir;" id="thumb-back" class="thumb-icon" type="menu-button" collapsed="true" top="0" left="0" tooltiptext="&backButton.tooltip;" onmousedown="event.stopPropagation();" onclick="thumbIconCheckMiddleClick(this,event);" oncommand="thumbIconBackCommand(event);">
  191.           <menupopup onpopupshowing="return thumbIconPopulateBackMenu(event);" oncommand="thumbIconGoToHistoryIndex(event); event.preventBubble()" onclick="thumbIconCheckMiddleClick(this,event);"/>
  192.         </toolbarbutton>
  193.         <toolbarbutton chromedir="&locale.dir;" id="thumb-forward" class="thumb-icon" type="menu-button" collapsed="true" top="0" left="0" tooltiptext="&forwardButton.tooltip;" onmousedown="event.stopPropagation();" onclick="thumbIconCheckMiddleClick(this,event);" oncommand="thumbIconForwardCommand(event);">
  194.           <menupopup onpopupshowing="return thumbIconPopulateForwardMenu(event);" oncommand="thumbIconGoToHistoryIndex(event); event.preventBubble()" onclick="thumbIconCheckMiddleClick(this,event);"/>
  195.         </toolbarbutton>
  196.         <toolbarbutton chromedir="&locale.dir;" id="thumb-newforward" class="thumb-icon" collapsed="true" top="0" left="0" tooltiptext="&forwardButton.tooltip;" onmousedown="event.stopPropagation();" onclick="thumbIconCheckMiddleClick(this,event);" oncommand="thumbIconForwardCommand(event);"/>
  197.         <toolbarbutton chromedir="&locale.dir;" id="thumb-newback" class="thumb-icon" collapsed="true" top="0" left="0" tooltiptext="&backButton.tooltip;" onmousedown="event.stopPropagation();" onclick="thumbIconCheckMiddleClick(this,event);" oncommand="thumbIconBackCommand(event);"/>
  198.         <toolbarbutton type="menu" id="thumb-history" class="thumb-icon" collapsed="true" top="0" left="0" tooltiptext="" onmousedown="event.stopPropagation();" oncommand="thumbIconHistoryCommand(event);">
  199.           <menupopup onpopupshowing="thumbIconPopulateHistoryMenu(event);" oncommand="thumbIconGoToHistoryIndex(event); event.preventBubble()" onclick="thumbIconCheckMiddleClick(this,event);"/>
  200.         </toolbarbutton>
  201.         <toolbarbutton id="thumb-reload" class="thumb-icon" collapsed="true" top="0" left="0" tooltiptext="&reloadButton.tooltip;" onmousedown="event.stopPropagation();" oncommand="thumbIconReloadCommand(event);"/>
  202.         <toolbarbutton id="thumb-stop" class="thumb-icon" collapsed="true" top="0" left="0" tooltiptext="&stopButton.tooltip;" onmousedown="event.stopPropagation();" oncommand="thumbIconStopCommand();"/>
  203.       </stack>
  204.     </scrollbox>
  205.   </hbox>
  206.   <data id="thumbnail-nolabel-template">
  207.     <vbox class="thumbnail" context="tabMenu">
  208.       <box flex="1" anonid="subCanvasBox" tooltip ="thumbnailTooltip">
  209.         <html:canvas title=" " class="thumbnailCanvas"/>
  210.       </box>
  211.     </vbox>
  212.   </data>
  213.  
  214.   <data id="thumbnail-box-template">
  215.     <vbox class="thumbnail" context="tabMenu" align="stretch">
  216.          <hbox class="showcase-topbox" align="stretch" anonid="topbox">
  217.               <hbox class="showcase-top-left"/>
  218.               <hbox align="center" flex="1" class="showcase-top-middle">
  219.  
  220.           <image class="bookmark-item" validate="never" onerror="this.src=null" anonid="thumbIcon"/>
  221.  
  222.           <label crop="end" flex="1" class="thumbnail-title" anonid="thumbLabel"/>
  223.           <toolbarbutton class="showcase-tab-close-button" anonid="thumbClose" tooltiptext="&closeTab.label;"/>
  224.           </hbox>
  225.           <hbox class="showcase-top-right"/>
  226.       </hbox>
  227.       <stack flex="1">
  228.           <vbox>
  229.               <hbox flex="1">
  230.                       <hbox class="showcase-middle-left"/>
  231.                       <hbox flex="1" class="showcase-middle-middle"/>
  232.                   <hbox class="showcase-middle-right"/>
  233.               </hbox>
  234.                  <hbox align="stretch">
  235.                       <hbox class="showcase-bottom-left"/>
  236.                       <hbox flex="1" class="showcase-bottom-middle"/>
  237.                   <hbox class="showcase-bottom-right"/>
  238.               </hbox>
  239.           </vbox>
  240.         <box anonid="subCanvasBox" tooltip="thumbnailTooltip" class="showcase-container">
  241.           <html:canvas title=" " class="thumbnailCanvas"/>
  242.         </box>
  243.     </stack>
  244.     </vbox>
  245.   </data>
  246.  
  247.   <data id="thumbnail-plain-template">
  248.     <vbox class="thumbnail" context="tabMenu" align="stretch">
  249.       <caption class="thumbnail-label" align="center" pack="center" style="margin:0;">
  250.  
  251.         <image class="bookmark-item" validate="never" onerror="this.src=null" anonid="thumbIcon"/>
  252.  
  253.         <label crop="end" class="thumbnail-title" anonid="thumbLabel"/>
  254.         <separator flex="10000" class="groove"/>
  255.       </caption>
  256.       <box flex="1" anonid="subCanvasBox" tooltip="thumbnailTooltip">
  257.         <html:canvas title=" " class="thumbnailCanvas"/>
  258.       </box>
  259.     </vbox>
  260.   </data>
  261.  
  262.   <data id="thumbnail-plainclose-template">
  263.     <vbox class="thumbnail" context="tabMenu" align="stretch">
  264.       <caption class="thumbnail-label" align="center" pack="center" style="margin:0;">
  265.  
  266.         <image class="bookmark-item" validate="never" onerror="this.src=null" anonid="thumbIcon"/>
  267.  
  268.         <label crop="end" class="thumbnail-title" anonid="thumbLabel"/>
  269.         <separator flex="10000" class="groove"/>
  270.  
  271.         <image class="tabs-closebutton" anonid="thumbClose" tooltiptext="&closeTab.label;"/>
  272.  
  273.       </caption>
  274.       <box flex="1" anonid="subCanvasBox" tooltip="thumbnailTooltip">
  275.         <html:canvas title=" " class="thumbnailCanvas"/>
  276.       </box>
  277.     </vbox>
  278.   </data>
  279. </page>